package com.taojiazheng.mapper;

import com.taojiazheng.entity.Job;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface JobMapper {
    int deleteByPrimaryKey(Integer id);

    /**
     * 创建工作
     * @param record
     * @return
     */
    int insert(Job record);

    int insertSelective(Job record);

    Job selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Job record);

    int updateByPrimaryKey(Job record);

    /**
     * 添加图片地址
     */
    int updateUrl(Map map);

    int deleteMyCreate(Integer jobId);
}